/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.upc.dew.sisrest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pe.edu.upc.dew.sisrest.dao.NoticiaDao;
import pe.edu.upc.dew.sisrest.model.Noticia;
import pe.edu.upc.dew.sisrest.service.NoticiaManager;

/**
 *
 * @author u201014509
 */
@Service
public class NoticiaManagerImpl implements NoticiaManager {

    @Autowired
    NoticiaDao noticiaDao;

    @Override
    public List<Noticia> obtenerNoticias() {
        return noticiaDao.obtenerNoticias();
    }

    @Override
    public Noticia obtenerNoticia(String sId) {
        return noticiaDao.obtenerNoticia(sId);
    }

    @Override
    public void grabarNoticia(Noticia objNot) {
        noticiaDao.grabarNoticia(objNot);
    }

    @Override
    public void eliminarNoticia(String sId) {
        noticiaDao.eliminarNoticia(sId);
    }
}
